import request from '@/utils/request'

export function getOrderList(query) {
  return request({
    url: '/mechanism/order/getList',
    method: 'post',
    data: query
  })
}

export function getOrderUsableList(query) {
  return request({
    url: '/mechanism/order/getAvailable',
    method: 'post',
    data: query
  })
}

export function getOrderDetail(id) {
  return request({
    url: '/mechanism/order/getDetail',
    method: 'post',
    data: id 
  })
}

export function saveOrder(id) {
  return request({
    url: '/mechanism/order/save',
    method: 'post',
    data: id
  })
}

export function removeOrderByID(id) {
  return request({
    url: '/mechanism/order/delete',
    method: 'post',
    data: id
  })
}

export function changeOrderStatusByID(id) {
  return request({
    url: '/mechanism/order/change-status',
    method: 'post',
    data: id
  })
}

